var mongoose = require('mongoose');
var Schema = mongoose.Schema;
//创建Schema

/**
* user
* username:用户名
* password: 密码
* phone:手机号
* updated: 注册时间
* friends：用户好友列表
*/
var userSchema = new Schema({
    username:String,
    password:String,
    phone:Number,
    updated: { type: Date, default: Date.now },
    friends:Array
});
module.exports = userSchema;